home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #14
/
Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO
/
os2
/
mlrxshl.zip
/
CDIR.CMD
next >
Wrap
OS/2 REXX Batch file
|
1995-02-09
|
429b
|
20 lines
/* cdir.cmd - a coloring dir filter */
signal on halt
do while lines()
handled = 1
l = linein()
select
when pos('<DIR>',l) > 0 then call charout ,'1b'x'[32m'
when WORDPOS(TRANSLATE(RIGHT(L,4)),'.EXE .CMD .BAT .COM') > 0 then call charout ,'1b'x'[36m'
otherwise
handled = 0
end /* select */
say l
if handled then call charout ,'1b'x'[0m'
end /* do */
halt:
exit